package spring.cloud.tasks.executor.name_space.executor.tasks_runtime_info.task_item_execute;

import java.util.concurrent.ConcurrentHashMap;

public class TaskInstanceExecuteRuntimeContext {
    public static ConcurrentHashMap<Integer, TaskItemExecuteRuntimeContexts> taskItemIndexToTaskItemExecuteRuntimeContextsMap = new ConcurrentHashMap<Integer, TaskItemExecuteRuntimeContexts>();

    public TaskItemExecuteRuntimeContexts getTaskItemExecuteRuntimeContexts(Integer taskItemIndex) {
        taskItemIndexToTaskItemExecuteRuntimeContextsMap.put(taskItemIndex, new TaskItemExecuteRuntimeContexts());
        TaskItemExecuteRuntimeContexts taskItemExecuteRuntimeContexts = taskItemIndexToTaskItemExecuteRuntimeContextsMap.get(taskItemIndex);
        return taskItemExecuteRuntimeContexts;
    }
}
